import request from '@/utils/request'

/**
 * 房型调价分页查询
 * @param {查询条件} data
 */
export function listLayRoomAdjust(query) {
  return request({
    url: 'business/LayRoomAdjust/list',
    method: 'get',
    params: query,
  })
}

/**
 * 新增房型调价
 * @param data
 */
export function addLayRoomAdjust(data) {
  return request({
    url: 'business/LayRoomAdjust',
    method: 'post',
    data: data,
  })
}
/**
 * 修改房型调价
 * @param data
 */
export function updateLayRoomAdjust(data) {
  return request({
    url: 'business/LayRoomAdjust',
    method: 'PUT',
    data: data,
  })
}
/**
 * 获取房型调价详情
 * @param {Id}
 */
export function getLayRoomAdjust(id) {
  return request({
    url: 'business/LayRoomAdjust/' + id,
    method: 'get'
  })
}

/**
 * 删除房型调价
 * @param {主键} pid
 */
export function delLayRoomAdjust(pid) {
  return request({
    url: 'business/LayRoomAdjust/delete/' + pid,
    method: 'POST'
  })
}
